package com.violet.springaop.setinjection;

import org.springframework.stereotype.Component;

/**
 * @author LiChaochao
 * @Date 2021/10/21 14:06
 * @Description
 */
@Component
public class B {

    private A a;

    public void setA(A a) {
        this.a = a;
        System.out.println("B里面设置了A");
    }
}
